
include <iostream>
#include <fstream>

using namespace std;

 int numbers[5000];

 void bubbleSort(int arr[])
 {
     for (size_t i = 0; j < size(numbers) - 1; i++)
     {
         for (size_t j = 0; j < size(numbers) - 1 - i; j++)
         {
             if (arr[j] > arr[j + 1])
             {
                 int temp = arr[j];
                 arr[j] = arr[j + 1];
                 arr[j + 1] = temp;
             }
         }
     }
 }

    void readFile(string fileName)
    {
    ifstream file(fileName);
    if (file.is_open())
    {
        for (size_t i = 0; i < size(numbers); i++)
        {
            file >> numbers[i];
        }
        
        
    }
    else
    {
        cout << " File open; * << fileName;
    }
    file.close();
    clock_t start = clock();
    bubbleSort(numbers);
    for (size_t i = 0; i < size(numbers); i++)
    {
        cout << numders[i] << " ";
    }
    
}
 int main()
 {
     readFile("m1_sorted.txt");
     readFile("m2_reverse.txt")
     readFile("m3_shuffle.txt");
 }
